package numybxb

import (
	"fmt"
	"math"
	"reflect"
	"unsafe"
)

// 测试数字类型的元数据
func TestNumMeta() {

	var abc int = 10

	fmt.Printf("变量的类型是:%T, 值是:%v \n", abc, abc)
	fmt.Printf("变量的类型是:%v\n", reflect.TypeOf(abc))
	fmt.Printf("变量占用内存大小:%d个字节\n", unsafe.Sizeof(abc))
	fmt.Printf("变量的数据范围是:%d ~ %d", math.MinInt, math.MaxInt)

}
